package com.bigbigrain.jiagou;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * @description:
 * @author: B1gB1gRA1n
 * @create: 2020-4-17 11:45
 **/
@SpringBootApplication
@ServletComponentScan
@Slf4j
public class SafeApplication {
    public static void main(String[] args) {
        SpringApplication.run(SafeApplication.class, args);
        String msg = "张胖子一点点的起飞";
        log.trace("Spring boot启动初始化了 {} 个 Bean", msg);
        log.debug("Spring boot启动初始化了 {} 个 Bean", msg);
        log.info("Spring boot启动初始化了 {} 个 Bean", msg);
        log.warn("Spring boot启动初始化了 {} 个 Bean", msg);
        log.error("Spring boot启动初始化了 {} 个 Bean", msg);
        try {
            int i = 0;
            int j = 1 / i;
        } catch (Exception e) {
            log.error("【SpringBootDemoLogbackApplication】启动异常：", e);
        }
    }
}
